import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
const userId = 'vue_admin_Id'

export function getTokenC () {
  return Cookies.get(TokenKey)
}

export function setTokenC (token) {
  return Cookies.set(TokenKey, token)
}

export function delTokenC () {
  return Cookies.remove(TokenKey)
}

export function getId () {
  return Cookies.get(userId)
}

export function setId (Id) {
  return Cookies.set(userId, Id)
}

export function removeId () {
  return Cookies.remove(userId)
}
